<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://code.jquery.com/jquery-3.6.4.min.js" integrity="sha256-oP6HI9z1XaZNBrJURtCoUT5SUnxFr8s3BzRl+cbzUq8=" crossorigin="anonymous"></script>
    <style>
        div{
            border: pink 1px solid;
        }
    </style>
    <script>
        $(function () {
            $("div").click(function (event) {
                console.log(event);
                if(event.type=="click") alert("div");
            });
            $("span").click(function () {
                alert("span");
                return false;
            });
        });
    </script>
</head>
<body>
    <div>
        div<br/>
        <span>span</span><br>
        div
    </div>
</body>
</html>